﻿@model IEnumerable<Leiktuther.ViewModels.StatisticsViewModel>
@{
    ViewBag.Title = "Tölfræði";
}
<h2>Tölfræði</h2>
    <table>
        <thead>
            <tr>
                <th>Notandi: </th>
                <th>Leikur:</th>
                <th>Vinningar:</th>
                <th>Jafntefli:</th>
                <th>Töp:</th>
            </tr>
        </thead>
        <tbody>
    @foreach(var item in Model)
    {
            <tr>
                <td>@item.playah.UserName</td>
                <td>@item.game.Name</td>
                <td>@item.stats.Win</td>
                <td>@item.stats.Draw</td>
                <td>@item.stats.Loss</td>
            </tr>
    }
        </tbody>
    </table>


